import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/views/home/Home'
import Personal from '@/views/home/Personal'
const routes = [
  {path: '/Personal', name: 'Personal', component: Personal},
  {path: '/', name: 'Home', component: Home},
  {path: '/CommonFoot', name: 'CommonFoot', component: () => import('@/components/CommonFoot')},
  {path: '/CommonHead', name: 'CommonHead', component: () => import('@/components/CommonHead')},
  {path: '/Banner', name: 'Banner', component: () => import('@/views/home/Banner')},
  {path: '/VideoList', name: 'VideoList', component: () => import('@/views/home/VideoList')},
  {path: '/FreeVideo', name: 'FreeVideo', component: () => import('@/views/home/FreeVideo')},
  {path: '/TabCatalog', name: 'TabCatalog', component: () => import('@/views/home/TabCatalog')},
  {path: '/TabSummary', name: 'TabSummary', component: () => import('@/views/home/TabSummary')},
  {path: '/VideoDetail', name: 'VideoDetail', component: () => import('@/views/home/VideoDetail')},
  {path: '/Register', name: 'Register', component: () => import('@/views/home/Register')},
  {path: '/LoginByAccount', name: 'LoginByAccount', component: () => import('@/views/home/LoginByAccount')},
  {path: '/LoginByPhone', name: 'LoginByPhone', component: () => import('@/views/home/LoginByPhone')},
  {path: '/UpdateNickName', name: 'UpdateNickName', component: () => import('@/views/home/UpdateNickName')},
  {path: '/UpdateGender', name: 'UpdateGender', component: () => import('@/views/home/UpdateGender')},
  {path: '/UpdateAge', name: 'UpdateAge', component: () => import('@/views/home/UpdateAge')},
  {path: '/UpdatePhone', name: 'UpdatePhone', component: () => import('@/views/home/UpdatePhone')},
  {path: '/UpdateUserInfo', name: 'UpdateUserInfo', component: () => import('@/views/home/UpdateUserInfo')},
  {path: '/UpdatePassword', name: 'UpdatePassword', component: () => import('@/views/home/UpdatePassword')},
  {path: '/UploadAvatar', name: 'UploadAvatar', component: () => import('@/views/home/UploadAvatar')},
  {path: '/Cart', name: 'Cart', component: () => import('@/views/home/Cart')},
  {path: '/Order', name: 'Order', component: () => import('@/order/Order')},
  {path: '/PlayVideo', name: 'PlayVideo', component: () => import('@/order/PlayVideo')},


]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
